prod — Product of matrix elements
If the argument is a row or column vector,
prod
computes the product of the elements of that vector. If the argument is not a vector, a row vector containing the product of each column is returned.
Subsections
Example